package ti25;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Room {
    private int suShe;
    private  Student student;

    public Room(int suShe, Student student) {
        this.suShe = suShe;
        this.student = student;

    }
   List<Student> studentList = new ArrayList<>(6);
    public int check_in( ){
           if (student.isXingBie() == true){
               for (int i = 0; i < 6; i++) {
                   //男生宿舍
                   studentList.add(student);
               }
               System.out.println("男生分配成功！");
           }else {
               for (int i = 0; i < 6; i++) {
                   //女生宿舍
                   studentList.add(student);
               }
               System.out.println("女生分配成功！");
           }
        return suShe;
    }
    public void show( ){

        System.out.println( );


    }

}
